<template>
  <div id="app">
    <nav>
      <router-link to="/">首页</router-link> |
      <router-link to="/city-info">城市信息</router-link> |
      <router-link to="/about">关于我们</router-link>
    </nav>
    <router-view />
  </div>
</template>

<style>
nav {
  padding: 2rem;
  text-align: center;
  background-color: #f0f0f0;
}

router-link {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
}

router-link.active {
  color: #42b983;
  font-weight: bold;
}
</style>